package(default_visibility = ["//visibility:public"])

load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
load("//tools:defaults.bzl", "ts_library")

nodejs_binary(
  name = "dgeni",
  entry_point = "angular_material/tools/dgeni/bazel-bin.js",
  data = [
    "@matdeps//source-map-support",
    "@matdeps//dgeni",
    "@matdeps//dgeni-packages",
    ":sources",
  ],
)

ts_library(
  name = "sources",
  srcs = glob(["**/*.ts"]),
  deps = [
    "@matdeps//@types/node",
    "@matdeps//@types/glob",
    "@matdeps//dgeni",
    "@matdeps//dgeni-packages",
    "//tools/highlight-files:sources",
  ],
  tsconfig = ":tsconfig.json",
)
